package com.waste.game.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.waste.game.entity.entitiytv.VideoAllBean;
import com.waste.game.entity.entitiytv.VideoLbtBean;
import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Transactional(rollbackFor = RuntimeException.class)
public interface VideoHomeLbtDao extends BaseMapper<VideoLbtBean> {
    //轮播图查询
//    @Select("SELECT * FROM toplbt")
    List<VideoLbtBean> getLbt();
    //查询单个轮播图
    VideoLbtBean getLbtOne(@Param("id")Integer id);
    //修改轮播图
    int upDateLbtOne(@Param("a") VideoLbtBean videoLbtBean);
}
